
#import <UIKit/UIKit.h>



#define XML_PARSE_FUNC_NO_ERROR		-1	


@interface ParserFuncTbl : NSObject
{
	NSString* start;
	NSString* end;
	NSString* characters;
}
@property(nonatomic, readwrite, copy)	NSString*	start;
@property(nonatomic, readwrite, copy)	NSString*	end;
@property(nonatomic, readwrite, copy)	NSString*	characters;
@end


#if defined ( __IPHONE_4_0 ) && ( __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0 )
	
	@interface XmlParser : NSObject <NSXMLParserDelegate>
#else
	
	@interface XmlParser : NSObject
#endif
{
	NSXMLParser*	m_pCurrentParser;
	
	NSMutableArray*	m_FuncTbl;	
	u_int			m_FuncNo;
}
@property(nonatomic, readonly) NSMutableArray*	m_FuncTbl;


- (BOOL)parseXml:(NSData*)data;
- (BOOL)parseXml:(NSData*)data funcNo:(u_int)func_no;

@end
